package api

import (
	"github.com/gin-gonic/gin"
	"user_bff/controller"
	"user_bff/middleware"
)

func Router() *gin.Engine {
	router := gin.Default()
	router.POST("/send/sms", controller.SendSms)     //发送短信验证码
	router.POST("/user/login", controller.UserLogin) //用户登录
	router.Use(middleware.UserAuth())
	return router
}
